﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace ZRT.RHPX.Modules.Admin.Controllers
{
    public class LoginController : Controller
    {
        //
        // GET: /Login/
        public ActionResult Index()
        {
            return View();
        }

        //登陆
        [HttpPost]
        public ActionResult CheckUser(string UserName, string UserPwd, string Code)
        {
            string Result = string.Empty;
            if (UserName == "admin")
                Result = "OK";
            else
                Result = "账号或密码错误";

            return Content(Result);
        }
    }
}
